if(TipInput == undefined){
	var TipInput = {};
}
TipInput.onclick = function(element){
	var className = element.className;
	if(className.indexOf('lightInput') != -1){
		element.value = '';
		element.className = className.replace('lightInput', '');
	}
}
TipInput.init = function(elementId, defaultValue){
	var element = $(elementId);
	var className = element.className;
	if(element.value == ''){
		element.value = defaultValue;
		if(className.indexOf('lightInput') == -1){
			element.className += ' lightInput';
		}
	}else{
		element.className = className.replace('lightInput', '');
	}
}
function roundTable(id){
	var table = $(id);
	var rows = table.rows;
	var colNum = rows[0].cells.length;
	for(var i=0; i<rows.length; i++){
		var row = rows[i];
		var startCell = row.insertCell(0);
		var endCell = row.insertCell(-1);
		if(i == 0){
			startCell.className = 'startTh';
			endCell.className = 'endTh';
		}else{
			startCell.className = 'startTd';
			endCell.className = 'endTd';
			if(row.cells.length == 3){
				row.cells[1].colSpan = colNum;
			}
		}
	}
	var endRow = table.insertRow(-1);
	var td1 = endRow.insertCell(-1);
	var td2 = endRow.insertCell(-1);
	var colSpan = rows[0].cells.length - 2;
	if(colSpan <= 0){
		colSpan = 1;
	}
	td2.colSpan = colSpan;
	var td3 = endRow.insertCell(-1);
	td1.className = 'tfootStartTd';
	td2.className = 'tfootMiddleTd';
	td3.className = 'tfootEndTd';
	
}